Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: revert SchedulerLike interface changes #5268

Merged
merged 2 commits into from
Jan 27, 2020

Conversation

cartant
Copy link
Collaborator

@cartant cartant commented Jan 25, 2020

Description:

This PR reverts the changes made to the SchedulerLike interface. As discussed in the core-team Slack channel - with @MichaelJamesParsons - the changes broke user-land schedulers. (Angular Zone-related schedulers are not uncommon.)

Although the typing of the SchedulerLike interface in arguably incorrect, it might be best to leave it as-is and delay any changes to the scheduler infrastructure until version 8.

The reversion has necessitated the liberal use of as any assertions, as all of the dispatch/work functions assume a state that is not undefined. This problem was hidden until the strict typescript option was enabled. I did try a few other approaches - including using a conditional type instead of the as any assertion - but they didn't work out.

Related issue: None

@cartant cartant requested a review from benlesh January 25, 2020 02:31
@benlesh benlesh merged commit 7b2904d into ReactiveX:master Jan 27, 2020
kwonoj pushed a commit to kwonoj/rxjs that referenced this pull request Feb 5, 2020
* chore: revert SchedulerLike interface changes

* chore: kick CI ... again ... wtf?
martinsik pushed a commit to martinsik/rxjs that referenced this pull request Feb 15, 2020
* chore: revert SchedulerLike interface changes

* chore: kick CI ... again ... wtf?
@lock lock bot locked as resolved and limited conversation to collaborators Feb 28, 2020
@cartant cartant deleted the assert-scheudler-work-as-any branch September 24, 2020 07:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants